<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	function fromNewCategory() {
		var url = "/manage/category/form";
		openWin(url, "새로운 공통코드 등록", 520, 400);
	}
</script>
</head>

<body>
<div class="content_top">
	<p class="path">
		<strong>코드관리</strong>
	</p>
</div>

<div class="div_right">
	<a href="javascript:;" class="btn_sml" onclick="fromNewCategory();"><span>새로운 코드 등록</span></a>
	<a href="javascript:;" class="btn_sml"><span>편집</span></a>
</div>
<br>
<br>
	
<div class="tbl_type1">
	<table cellspacing="0" border="1">
		<col width="100">
		<col width="150">
		<col>
		<col width="85">
		<col width="85">
		
		<thead>
		<tr>
			<th>공통코드</th>
			<th>공통코드명</th>
			<th>비고</th>
			<th>등록일시</th>
			<th>등록자</th>
		</tr>
		</thead>
		
		<tbody>
		<c:forEach items="${categoryList}" var="item">
		<tr>
			<td><a href="/manage/code/${item.code}">${item.code}</a></td>
			<td>${item.name}</td>
			<td>${item.desc}</td>
			<td align="center">${item.registerDate}</td>
			<td align="center">${item.userId}</td>
		</tr>
		</c:forEach>
		<c:if test="${empty categoryList}">
		<tr>
			<td colspan="5" align="center">검색한 테이터가 없습니다.</td>
		</tr>
		</c:if>
		</tbody>
	</table>
</div>

</body>
</html>